@import '~antd/es/style/themes/default.less';
@import './assets/style/common.less';

html,
body,
#root {
  height: 100%;
  // overflow: -moz-hidden-unscrollable;
  overflow-x: hidden;
}
canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-height: 100vh;

  .ant-layout-sider {
    padding-top: 0 !important;

    .ant-menu {
      .ant-menu-item {
        // padding-left: 40px !important;
      }
    }
  }

  .ant-layout-header,
  .ant-pro-fixed-header {
    display: none;
  }
}

.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed {
  left: unset;
}

.ant-modal-root {
  .ant-modal {
    .ant-modal-title {
      font-size: 14px;
    }

    .ant-modal-close {
      .ant-modal-close-x {
        height: 39px;
        line-height: 39px;
      }
    }

    .ant-modal-header {
      padding: 8px 12px;
    }

    .ant-modal-body {
      padding: 12px;

      .ant-pro-form-group {
        .ant-space {
          align-items: flex-start;

          .ant-space-item {
            .ant-form-item {
              margin-bottom: 8px;
              font-size: 12px;

              .ant-form-item-label {
                label {
                  height: 24px;
                }
              }

              .ant-form-item-control {
                .ant-select-selector {
                  height: 24px;

                  .ant-select-selection-search {
                    input {
                      height: 24px;
                    }
                  }
                  .ant-select-selection-placeholder {
                    line-height: 24px;
                  }
                }
                .ant-form-item-control-input {
                  min-height: 24px;

                  .ant-input-affix-wrapper {
                    padding: 0 11px;

                    .ant-input {
                      font-size: 12px;
                      height: 22px;
                    }
                  }
                }

                .ant-picker {
                  height: 24px;
                  padding: 0 11px;
                }

                .ant-input-number-input-wrap {
                  input {
                    height: 24px;
                  }
                }
              }
            }
          }
        }
      }

      .ant-form-item {
        margin-bottom: 12px;

        .ant-form-item-label {
          label {
            font-size: 12px;
          }
        }

        .ant-input-affix-wrapper {
          font-size: 12px;
          .ant-input {
            font-size: 12px;
          }
        }

        .ant-select {
          font-size: 12px;
          .ant-select-selection-search {
            .ant-select-selection-placeholder {
              font-size: 12px;
            }
          }
          .ant-select-selection-item {
            line-height: 24px;
          }
        }

        .ant-picker {
          .ant-picker-input {
            input {
              font-size: 12px;
            }
          }
        }

        .ant-input-number-input-wrap {
          input {
            font-size: 12px;
          }
        }

        .ant-form-item-explain-error {
          font-size: 12px;
        }
      }

      .ant-pro-table {
        .ant-pro-table-search {
          padding: 0;
        }

        .ant-form-item {
          font-size: 12px;

          .ant-form-item-control {
            .ant-select-selector {
              height: 24px;
              padding: 0 6px;

              .ant-select-selection-search {
                input {
                  height: 24px;
                }
              }
              .ant-select-selection-item,
              .ant-select-selection-placeholder {
                line-height: 24px;
              }
            }

            .ant-input-affix-wrapper {
              font-size: 12px;
              padding: 0 6px;

              input {
                height: 22px;
                font-size: 12px;
              }
            }
          }
        }
        .ant-card-body {
          .ant-table-cell,
          .ant-empty-description {
            font-size: 12px;
            padding: 6px 6px;

            .ant-form-item {
              .ant-form-item-control {
                .ant-select-selector {
                  height: 24px;
                  padding: 0 6px;

                  .ant-select-selection-search {
                    input {
                      height: 24px;
                    }
                  }
                  .ant-select-selection-item,
                  .ant-select-selection-placeholder {
                    line-height: 24px;
                  }
                }

                .ant-input-affix-wrapper {
                  font-size: 12px;
                  padding: 0 6px;

                  input {
                    height: 22px;
                    font-size: 12px;
                  }
                }
              }
            }
          }

          .ant-pro-table-list-toolbar-left {
            gap: 0 !important;
          }

          .ant-pro-table-list-toolbar-right {
            .ant-space-item {
              font-size: 12px;
            }
          }
          .ant-pro-table-list-toolbar-container {
            padding: 8px 0;
          }
        }
      }

      .ant-descriptions {
        .ant-descriptions-item-container {
          // align-items: center;
          .ant-descriptions-item-label {
            padding: 0 !important;
          }
        }
      }
    }

    .ant-modal-footer {
      padding: 5px 8px;
    }
  }
}

.ant-modal-body {
  .ant-descriptions {
    .ant-descriptions-item-container {
      .ant-descriptions-item-label {
        padding: 0 !important;
      }
    }
  }
}

.ant-popover {
  .ant-popover-inner-content {
    padding: 6px 8px;
  }
  .ant-popover-message {
    font-size: 12px;
  }
  .ant-pro-inline-error-form-item-rule-content-text {
    font-size: 12px;
  }
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;
    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;
        > span {
          display: block;
        }
      }
    }
  }
}

.ant-layout {
  .ant-layout-sider {
    .ant-menu {
      font-size: 13px;
    }
  }

  .ant-layout-header,
  .ant-pro-fixed-header {
    display: none;
  }
}

.ant-select-dropdown {
  .ant-select-item {
    font-size: 12px;
  }
}

.ant-card {
  .ant-card-head {
    .ant-card-head-title {
      font-size: 12px;
    }
  }
}

.ant-descriptions {
  .ant-descriptions-item-label,
  .ant-descriptions-item-content {
    font-size: 12px;
  }
}

.ant-radio-wrapper {
  font-size: 12px !important;
  .ant-radio {
    font-size: 12px !important;
  }
}

.ant-layout-content {
  margin: 10px;

  .ant-pro-page-container {
    margin: -10px -10px 0;
    .ant-page-header {
      padding: 4px 6px;

      .ant-page-header-heading {
        align-items: center;
      }

      .ant-page-header-heading-title {
        font-size: 16px;
      }
    }
  }

  .ant-pro-grid-content {
    .ant-pro-page-container-children-content {
      margin: 6px 0 0;
    }
  }

  .ant-pro-table {
    .ant-pro-table-search {
      padding: 16px 8px 8px;
      margin-bottom: 4px;

      .ant-form {
        .ant-row {
          .ant-col {
            padding-left: 0 !important;
            padding-right: 6px !important;

            .ant-form-item {
              margin-bottom: 8px;

              &.pro-form-query-filter-actions {
                margin-bottom: 0;
              }

              .ant-form-item-label {
                padding-right: 0 !important;

                label {
                  height: 24px;
                  font-size: 12px;
                }
              }

              .ant-form-item-control {
                .ant-form-item-control-input {
                  min-height: 24px;

                  .ant-select {
                    font-size: 12px;
                    line-height: 22px;
                    min-width: 100% !important;
                  }

                  .ant-select-selector {
                    height: 24px;
                    padding: 0 5px;

                    .ant-select-selection-search-input {
                      height: 22px;
                      font-size: 12px;
                    }

                    .ant-select-selection-item {
                      line-height: 24px;
                      font-size: 12px;
                    }
                  }

                  .ant-select-selection-placeholder {
                    line-height: 24px;
                    font-size: 12px;
                  }

                  .ant-input-affix-wrapper {
                    height: 24px;
                    padding: 0 5px !important;
                    font-size: 12px;
                    line-height: 24px;
                    box-sizing: border-box;

                    input {
                      font-size: 12px;
                    }
                  }

                  .ant-picker {
                    padding: 2px 5px;
                    font-size: 12px;

                    .ant-picker-input {
                      input {
                        font-size: 12px;
                      }
                    }
                  }

                  .ant-input-number-input {
                    height: 24px;
                    font-size: 12px;
                  }

                  .ant-checkbox-wrapper {
                    font-size: 12px;
                  }
                }
              }
            }

            &:last-child {
              .ant-form-item {
                .ant-form-item-control {
                  .ant-form-item-control-input-content {
                    > .ant-space {
                      gap: 0 !important;
                    }
                  }
                }
              }
            }
          }
        }
      }
    }

    .ant-pro-table-extra {
      margin-bottom: 4px;

      .table-hint {
        font-size: 12px;
      }
    }

    .ant-card-body {
      padding: 12px;

      .ant-pro-table-alert {
        display: none;
      }

      .ant-pro-table-list-toolbar-container {
          // padding: 8px 0;
          padding: 0 0 8px;

        .ant-pro-table-list-toolbar-left {
          gap: 0px !important;
        }

        .ant-pro-table-list-toolbar-title {
          font-size: 14px;
        }

        .ant-pro-table-list-toolbar-menu {
          .ant-pro-table-list-toolbar-inline-menu-item {
            margin-right: 15px;
          }
        }
      }

      .ant-table-wrapper {
        .ant-table {
          .ant-table-container {
            .ant-table-content {
              .ant-table-cell {
                padding: 6px 4px;
                font-size: 12px;

                a {
                  font-size: 12px;
                }
              }
            }
          }
        }

        .ant-pagination {
          font-size: 12px;
          .ant-pagination-total-text {
            font-size: 12px;
          }

          .ant-pagination-options {
            .ant-select,
            .ant-select-dropdown {
              min-width: auto !important;
              font-size: 12px !important;
            }
          }
        }
      }
    }

    .ant-empty-description {
      font-size: 12px;
    }
  }
}

// 兼容IE11
@media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
  body .ant-design-pro > .ant-layout {
    min-height: 100vh;
  }
}

.red { color: red; }
.bold { font-weight: bold; }
// .ant-modal { top: 10% !important }
.ant-modal { top: 3vh !important }
.ant-page-header-heading-extra {
  margin: 8px 0;
  white-space: nowrap;
}
.mytable {
  .ant-pro-table-list-toolbar-left {
    display: none;
  }
  .ant-pro-table-list-toolbar {
    .ant-space {
      display: block;
      width: 100%;
    }
  }
}
.ant-table-cell {
  padding: 2px 4px !important;
  font-size: 12px;
  border-right: 1Px #d8d8d8 solid !important;
  word-break: break-all !important;
  a {
    font-size: 12px;
  }
}
.update-goods-table {
  .ant-card {
    padding: 0 0 0 !important;
  }
  .ant-pro-table-list-toolbar .ant-pro-table-list-toolbar-container {
    padding: 8px 8px 8px !important;
  }
  .ant-table-title {
    padding: 8px !important;
    font-size: 14px !important;
    font-weight: bold !important;
  }
  .ant-pro-table-list-toolbar-title {
    font-size: 14px !important;
  }
  .ant-pro-table-list-toolbar {
    border: 1px solid #d8d8d8 !important;
    border-bottom: 0 !important;
  }
}
.ant-descriptions-row > th, .ant-descriptions-row > td {
  padding-bottom: 12px !important;
}
#customize_menu_header {
  display: flex;
  align-items: center;
  img {
    height: 25px !important;
  }
  h1 {
    font-size: 14px !important;
  }

}
.ant-pro-sider.ant-layout-sider-collapsed .ant-pro-sider-logo {
  padding: 8px !important;
  img {
    width: 100% !important;
    height: auto !important;
  }
}
.ant-pro-sider-logo {
  padding: 8px 16px 0 !important;
}
.ant-form .ant-form-item {
  // margin-bottom: 12px;
}
.invisible-scrollbar::-webkit-scrollbar {
  display: none;
}
.ant-divider-horizontal {
  margin: 10px 0 !important;
}
::-webkit-scrollbar {
  // display: none;
  // width: 7px;
  // height: 7px;
}
::-webkit-scrollbar-thumb {
  background: #cfcfcf;
  border-radius: 3px;
}
.common_title {
  font-weight: bold;
  font-size: 13px;
}
.ant-form-item-label > label, .ant-form-item-explain, .ant-form-item-extra, .ant-modal-body {
  font-size: 12px !important;
}
.ant-input-affix-wrapper, .ant-select-selector {
  font-size: 12px !important;
  padding: 0px 5px !important;
}
.ant-picker {
  font-size: 12px !important;
  padding: 2px 5px !important;
}
.ant-select-single .ant-select-selector .ant-select-selection-search {
  left: 5px !important;
}
.ant-descriptions-bordered .ant-descriptions-item-content {
  // padding: 4px 8px !important;
  padding: 4px !important;
}
.ant-switch-checked .ant-switch-handle {
  left: calc(100% - 11px - 2px) !important;
}
.ant-switch-handle {
  width: 11px !important;
  height: 11px !important;
}
.ant-switch {
  height: 16px !important;
  line-height: 16px !important;
  min-width: 32px !important;
}
.ant-btn-primary {
  background: #096dd9 !important;
  line-height: 22px;
}
.ant-btn-primary[disabled] {
  background: #f5f5f5 !important;
}
.ant-switch-checked {
  background: #2E8DE6 !important;
}
.ant-select-single:not(.ant-select-customize-input) .ant-select-selector, .ant-select-single .ant-select-selector .ant-select-selection-placeholder {
  height: 24px !important;
  line-height: 24px !important;
}
.ant-select-single:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-search-input {
  height: 100% !important;
}
.btnColor2 { background: #2E8DE6 !important;  border-color: #2E8DE6 !important;}

.ant-table .ant-table-thead .ant-table-cell {
  background: #e4effb;
  border-bottom: 1px #d8d8d8 solid;
}

.ant-descriptions-item-label {
  // background: #e4effb !important;
}
.ant-table.ant-table-bordered > .ant-table-container {
  border-left: 1px #d8d8d8 solid !important;
}
.ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table, .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table {
  border-top: 1px solid #d8d8d8 !important;
}

.ant-descriptions-bordered .ant-descriptions-row,
.ant-table-tbody > tr > td,
.ant-table-summary > tr > th,
.ant-table-summary > tr > td {
  border-bottom: 1px solid #d8d8d8 !important;
}
.ant-table-tbody {
  .ant-table-measure-row {
    td {
      border-bottom: none !important;
    }
  }
}

.ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > tbody > tr > .ant-table-cell-fix-right-first::after,
.ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > thead > tr > .ant-table-cell-fix-right-first::after,
// .ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table > tbody > tr > td > .ant-table-expanded-row-fixed::after,
.ant-descriptions-bordered .ant-descriptions-item-label,
.ant-descriptions-bordered .ant-descriptions-item-content {
  border-right: 1px solid #d8d8d8 !important;
}
.ant-table-expanded-row-fixed::after {
  border-right: 0 !important;
}
.ant-descriptions-bordered .ant-descriptions-view {
  border: 1px solid #d8d8d8 !important;
}
.ant-descriptions-bordered .ant-descriptions-row:last-child {
  border-bottom: none !important;
}
.ant-pro-table-search {
  border: 0 !important;
}
.ant-table-selection-column {
  // border-bottom: 0 !important;
}
.ant-table-measure-row {
  tr td {
    border-bottom: none;
  }
}
.ant-input-number-input {
  padding: 0 5px !important;
}
.ant-picker-input > input, .ant-form label {
  font-size: 12px !important;
}

@media print {
  // size: landscape; 横向 portrait 纵向
  @page { margin: 10mm 0; padding: 0px; size: portrait; border: 0; box-shadow: none !important;
    border-radius: 0 !important; mso-header: none; mso-footer: none; }

  * {
    max-height: auto;
    height: auto !important;
    overflow: visible;
    margin: 0;
    padding: 0;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  .ant-table-cell {
    border-right: 1Px #d8d8d8 solid !important;
  }
  .ant-table-thead .ant-table-cell {
    background: #e4effb !important;
  }
  .ant-table-tbody > tr > td, .ant-table .ant-table-thead .ant-table-cell {
    border-bottom: 1Px solid #d8d8d8 !important;
  }
  .ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table {
    border-top: 1Px solid #d8d8d8 !important;
  }
  .ant-table-container {
    border-left: 1px #d8d8d8 solid !important;
  }
  .ant-divider {
    border-top: 1Px solid #d8d8d8 !important;
  }
}
.print_table {
  .ant-table.ant-table-bordered > .ant-table-container > .ant-table-content > table {
    border-top: 1Px solid #d8d8d8 !important;
  }
  .ant-table-container {
    border-left: 1px #d8d8d8 solid !important;
  }
}
.ant-pagination-total-text {
  font-size: 12px;
}

.printPage {
  // position: absolute;
  // z-index: 9999999999;
  // top: 0;
  // left: 0;
  // width: 100%;
  // background: #fff;
  height: 100% !important;
  // overflow: hidden !important;
  .ant-modal {
    // overflow: hidden !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    top: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  .ant-modal-content {
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  .ant-table-thead .ant-table-cell {
    background: #e4effb !important;
  }
}
// 表格表单自定义的输入框
.mySearch {
  padding: 2px 5px !important;
}
.mySearch_comm {
  input {
    padding: 2px 5px !important
  }
  button {
    height: 24px !important;
  }
}

// 表格行点击样式
.tableRowClick {
  background: #e6f6ff;
  .ant-table-cell-fix-right{
    background: #e6f6ff;
  }
}

.print_ewm {
  .ant-descriptions-item-container {
    justify-content: flex-end !important;
  }
  .ant-descriptions-item-content {
    flex: inherit !important;
  }
}

.curKs {
  // background: #e6f6ff !important;
  // background: red !important;
  color: #096dd9 !important;
}
.myFormAutoComplete {
  .ant-select-selector {
    top: 3px;
    height: 26px;
  }
}
.ant-select-dropdown {
  .ant-divider {
    margin: 0 !important;
  }
}

.bold { font-weight: bold; }
.org {
  color: #faad14;
}
.grey { color: rgba(0, 0, 0, 0.45) }
.red { color: #ff4d4f }
.green { color: #3f8600; }
.hand {
  cursor: pointer;
}
.handClick {
  cursor: pointer;
  color: #2E8DE6;
}
.ant-table-cell-scrollbar {
  box-shadow: 0 1px 0 1px #d8d8d8 !important;
}
